package com.runtu.infrastructure.dao;

import com.runtu.infrastructure.dao.po.GroupBuyOrder;
import org.apache.ibatis.annotations.Mapper;

/**
 * @ClassName IGroupBuyOrderDao
 * @Description 用户拼单
 * @date 2025/8/3 16:22
 * @Version 1.0
 */
@Mapper
public interface IGroupBuyOrderDao {

    //插入
    void insert(GroupBuyOrder groupBuyOrder);

    //更新锁单的数量  (锁单数量增加用这个)
    int updateAddLockCount(String teamId);

    //更新锁单的数量  (锁单数量减少用这个)
    int updateSubtractionLockCount(String teamId);

    //查询拼单的进度
    GroupBuyOrder queryGroupBuyProgress(String teamId);

    GroupBuyOrder queryGroupBuyTeamByTeamId(String teamId);

    int updateAddCompleteCount(String teamId);

    int updateOrderStatus2COMPLETE(String teamId);
}
